<?php

namespace djepo\UserBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * CollectionFollower
 *
 * @ORM\Table(name="collection_follower")
 * @ORM\Entity
 */
class CollectionFollower
{
    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer", nullable=false)
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $id;

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="date", type="date", nullable=false)
     */
    private $date;

    /**
     * @var \Collection
     *
     * @ORM\ManyToOne(targetEntity="Collection")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="collectiont_id", referencedColumnName="id")
     * })
     */
    private $collectiont;

    /**
     * @var \FosUser
     *
     * @ORM\ManyToOne(targetEntity="FosUser")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="user_id", referencedColumnName="id")
     * })
     */
    private $user;



    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set date
     *
     * @param \DateTime $date
     * @return CollectionFollower
     */
    public function setDate($date)
    {
        $this->date = $date;
    
        return $this;
    }

    /**
     * Get date
     *
     * @return \DateTime 
     */
    public function getDate()
    {
        return $this->date;
    }

    /**
     * Set collectiont
     *
     * @param \djepo\UserBundle\Entity\Collection $collectiont
     * @return CollectionFollower
     */
    public function setCollectiont(\djepo\UserBundle\Entity\Collection $collectiont = null)
    {
        $this->collectiont = $collectiont;
    
        return $this;
    }

    /**
     * Get collectiont
     *
     * @return \djepo\UserBundle\Entity\Collection 
     */
    public function getCollectiont()
    {
        return $this->collectiont;
    }

    /**
     * Set user
     *
     * @param \djepo\UserBundle\Entity\FosUser $user
     * @return CollectionFollower
     */
    public function setUser(\djepo\UserBundle\Entity\FosUser $user = null)
    {
        $this->user = $user;
    
        return $this;
    }

    /**
     * Get user
     *
     * @return \djepo\UserBundle\Entity\FosUser 
     */
    public function getUser()
    {
        return $this->user;
    }
}